#ifdef __cplusplus
    #include <cstdlib>
#else
    #include <stdlib.h>
#endif

#include <SDL/SDL.h>
#include <stdlib.h>
#include <stdio.h>
#include "play.h"
#include "collision.h"
#include "deplacement.h"






void levent(int *boucle)
{
    SDL_Event event;
    SDL_PollEvent(&event);   //attente de l'event, mais si il ne recoit pas l'event la boucle continue, contrairement a "SDL_WaiktEvent"
    switch(event.type)  //traitement de l'event
     {
         case SDL_QUIT:                  //permet de quitter la fenetre si on clic sur la croix
         *boucle = 0;                     //arret de la boucle si on clic
         break;                        //

     }
}





void main ( int argc, char** argv[] )
{
  Play();
}

